import { getRequest, postRequest } from '@/utils/request'

export const userApi = {
  // 获取当前登录用户信息
  getUserInfo: () => {
    return getRequest('/v1/auth/users/view')
  },

  // 当前登录用户信息修改
  usersUpdate: (params = {}) => {
    return postRequest('/v1/auth/users/edit', params)
  },

  // 当前登录用户绑定微信
  userBinding: (params = {}) => {
    return postRequest('/v1/auth/users/binding', params)
  },

  // 当前登录用户解绑微信
  userUnbind: () => {
    return getRequest('/v1/auth/users/unbind')
  }
}
